local id_key = KEYS[1]
local seqStartId = ARGV[1]
local current = redis.call('get',id_key)
if current == false then
    redis.call('set',id_key,seqStartId)
    redis.call('expire',id_key, 3600)
    return tostring(seqStartId)
end
redis.log(redis.LOG_NOTICE,' current:'..current..':')
local result =  tonumber(current)+1
redis.log(redis.LOG_NOTICE,' result:'..result..':')
redis.call('set',id_key,result)
redis.call('expire',id_key, 3600)
return tostring(result)